home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 24
/
AACD 24.iso
/
AACD
/
Information
/
WebSites
/
Imagine
/
arexx
/
dna.lzx
/
makeDNA.irx
< prev
Wrap
Text File
|
1992-02-03
|
871b
|
35 lines
/*
Imagine V5+ AREXX script:
makeDNA.irx - Copyright Ash R. J. Wyllie
Example script demonstrates parsing an ASCII text file, and using
the data contained within to create an object.
The example data file creates a C180 fullerine and a short chain of DNA.
With additional programming, it should be possible to create larger
proteins.
The AREXX script requires the object files "C", "H", "O", "N" and "P" to
be placed in "objects:molecules/". This can be changed by amending line 27
*/
address "Imagine_1"
say open(f1,"d_cg6.pdb","R")
do forever
ln = readln(f1)
if eof(f1)
then leave
parse var ln d1 d2 a1 d3 d4 x y z
a1=left(a1,1)
say d2 a1 x y z
loadobject "objects:molecules/" || a1
pick select
transform_position 100*x 100*y 100*z
end
call close(f1)